package br.com.minhascontas.activity.grupo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import br.com.example.minhascontas.R;

public class MenuCadastroGrupo extends Activity {

	private Button btnNovoGrupo;
	private Button btnNovoItem;
	private Button btnExibirGrupos;
	private Button btnExibirItens;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_cadastro_grupo);

		btnNovoGrupo = (Button) findViewById(R.id.btnNovoGrupo);
		btnNovoItem = (Button) findViewById(R.id.btnNovoItem);
		btnExibirGrupos = (Button) findViewById(R.id.btnExibirGrupos);
		btnExibirItens = (Button) findViewById(R.id.btnExibirItens);

		btnNovoGrupo.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MenuCadastroGrupo.this,
						CadastraGrupo.class);
				startActivity(intent);
			}
		});

		btnNovoItem.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MenuCadastroGrupo.this,
						CadastroItemGrupo.class);
				startActivity(intent);
			}
		});
		
		btnExibirGrupos.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MenuCadastroGrupo.this,
						ExibirGrupos.class);
				startActivity(intent);
			}
		});
		
		btnExibirItens.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MenuCadastroGrupo.this,
						ExibirItens.class);
				startActivity(intent);
			}
		});
	}
}
